{{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
{{ $.Scratch.Set "path" .Site.BaseURL }}
<ol class="breadcrumb">
    <li><a href="/">Home</a></li>
    {{ range $element := split $url "/" }}
        {{ $.Scratch.Add "path" $element }}
        {{ if ne $element "" }}
            <li><a href="{{ $.Scratch.Get "path" }}/">{{ replace (replace (title .) "-" " ") "_" " " }}</a></li>
            {{ $.Scratch.Add "path" "/" }}
        {{ end }}
    {{ end }}
</ol>
